<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate/ajson/sim/ordered_dict.py Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_374ee6e3281d8312d956f1f155302869.html">aestate</a></li><li class="navelem"><a class="el" href="dir_750b3d80577cce9b9bed1e25acfa02b9.html">ajson</a></li><li class="navelem"><a class="el" href="dir_0ff9c0a1878d33b60c2e08a209ca7aa8.html">sim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ordered_dict.py</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ordered__dict_8py.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"><a class="line" href="namespaceaestate_1_1ajson_1_1sim_1_1ordered__dict.html">    1</a></span>&#160;<span class="stringliteral">&quot;&quot;&quot;Drop-in replacement for collections.OrderedDict by Raymond Hettinger</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="stringliteral"></span> </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="stringliteral">http://code.activestate.com/recipes/576693/</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="stringliteral"></span> </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="stringliteral">&quot;&quot;&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">from</span> UserDict <span class="keyword">import</span> DictMixin</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html">    9</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html">OrderedDict</a>(dict, DictMixin):</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a872f6f68f9c794113e01ab744dfe93b5">   11</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a872f6f68f9c794113e01ab744dfe93b5">__init__</a>(self, *args, **kwds):</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        <span class="keywordflow">if</span> len(args) &gt; 1:</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;            <span class="keywordflow">raise</span> TypeError(<span class="stringliteral">&#39;expected at most 1 arguments, got %d&#39;</span> % len(args))</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <span class="keywordflow">try</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;            self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        <span class="keywordflow">except</span> AttributeError:</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;            self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#adaff0e9dcd2e9a626a85e96a9a6a81cc">clear</a>()</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab12cc98312bb7ee8c0c8904025b09a74">update</a>(*args, **kwds)</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#adaff0e9dcd2e9a626a85e96a9a6a81cc">   20</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#adaff0e9dcd2e9a626a85e96a9a6a81cc">clear</a>(self):</div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">   21</a></span>&#160;        self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a> = end = []</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        end += [<span class="keywordtype">None</span>, end, end]  <span class="comment"># sentinel node for doubly linked list</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">   23</a></span>&#160;        self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a> = {}  <span class="comment"># key --&gt; [key, prev, next]</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        dict.clear(self)</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a886407e586e8bc5211f404f9bf5b6c7a">   26</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a886407e586e8bc5211f404f9bf5b6c7a">__setitem__</a>(self, key, value):</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordflow">if</span> key <span class="keywordflow">not</span> <span class="keywordflow">in</span> self:</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            end = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            curr = end[1]</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            curr[2] = end[1] = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a>[key] = [key, curr, end]</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        dict.__setitem__(self, key, value)</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad00b2dec6985a3f2f787ad098a4093e3">   33</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad00b2dec6985a3f2f787ad098a4093e3">__delitem__</a>(self, key):</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        dict.__delitem__(self, key)</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        key, prev, next = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a>.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a1a372b463cce0adbbb4de3a9adb44431">pop</a>(key)</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        prev[2] = next</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        next[1] = prev</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a2a1ed4882963fb4dbe628fdacddd743e">   39</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a2a1ed4882963fb4dbe628fdacddd743e">__iter__</a>(self):</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        end = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        curr = end[2]</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordflow">while</span> curr <span class="keywordflow">is</span> <span class="keywordflow">not</span> end:</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <span class="keywordflow">yield</span> curr[0]</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            curr = curr[2]</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a72bd5f0d8a33e02d73c5721ca80b65b2">   46</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a72bd5f0d8a33e02d73c5721ca80b65b2">__reversed__</a>(self):</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        end = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        curr = end[1]</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">while</span> curr <span class="keywordflow">is</span> <span class="keywordflow">not</span> end:</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">yield</span> curr[0]</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            curr = curr[1]</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a7a6061e69b6a9d694885023ec96d0d5e">   53</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a7a6061e69b6a9d694885023ec96d0d5e">popitem</a>(self, last=True):</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> self:</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            <span class="keywordflow">raise</span> KeyError(<span class="stringliteral">&#39;dictionary is empty&#39;</span>)</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        key = reversed(self).next() <span class="keywordflow">if</span> last <span class="keywordflow">else</span> iter(self).next()</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        value = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a1a372b463cce0adbbb4de3a9adb44431">pop</a>(key)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">return</span> key, value</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a6e63ad8f079d665ee964251cb1a707bb">   60</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a6e63ad8f079d665ee964251cb1a707bb">__reduce__</a>(self):</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        items = [[k, self[k]] <span class="keywordflow">for</span> k <span class="keywordflow">in</span> self]</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        tmp = self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a>, self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        del self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a>, self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        inst_dict = vars(self).<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a3c5c7042b2a49ca19c35c047e14f3d68">copy</a>()</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">__map</a>, self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">__end</a> = tmp</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">if</span> inst_dict:</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="keywordflow">return</span> (self.__class__, (items,), inst_dict)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keywordflow">return</span> self.__class__, (items,)</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a9e36e8d777563dd970a13c9ed87007f9">   70</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a9e36e8d777563dd970a13c9ed87007f9">keys</a>(self):</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keywordflow">return</span> list(self)</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a8d4f8c5696930ef0ae20aa6f786376a1">   73</a></span>&#160;    setdefault = DictMixin.setdefault</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab12cc98312bb7ee8c0c8904025b09a74">   74</a></span>&#160;    update = DictMixin.update</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a1a372b463cce0adbbb4de3a9adb44431">   75</a></span>&#160;    pop = DictMixin.pop</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ac1ffa455a5aac9821c222eeb4f3538c4">   76</a></span>&#160;    values = DictMixin.values</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a0104fd559ae60468afd35fa6888d794d">   77</a></span>&#160;    items = DictMixin.items</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ae24a45f10667d5a3c3b9d468a643ce42">   78</a></span>&#160;    iterkeys = DictMixin.iterkeys</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a573169ba19b381ad5c7642f9cf9b8af3">   79</a></span>&#160;    itervalues = DictMixin.itervalues</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a8fb9e0f392f453e3231d4f6858454b80">   80</a></span>&#160;    iteritems = DictMixin.iteritems</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab45199265cf240b22cd468c146eef72c">   82</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab45199265cf240b22cd468c146eef72c">__repr__</a>(self):</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordflow">if</span> <span class="keywordflow">not</span> self:</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keywordflow">return</span> <span class="stringliteral">&#39;%s()&#39;</span> % (self.__class__.__name__,)</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">return</span> <span class="stringliteral">&#39;%s(%r)&#39;</span> % (self.__class__.__name__, self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a0104fd559ae60468afd35fa6888d794d">items</a>())</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a3c5c7042b2a49ca19c35c047e14f3d68">   87</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a3c5c7042b2a49ca19c35c047e14f3d68">copy</a>(self):</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        <span class="keywordflow">return</span> self.__class__(self)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    @classmethod</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a64ee52322f8491b85a246e9126d1602a">   91</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a64ee52322f8491b85a246e9126d1602a">fromkeys</a>(cls, iterable, value=None):</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        d = cls()</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keywordflow">for</span> key <span class="keywordflow">in</span> iterable:</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            d[key] = value</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <span class="keywordflow">return</span> d</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#afa3ad4f9fc3f574dbeb5e18b3db56622">   97</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#afa3ad4f9fc3f574dbeb5e18b3db56622">__eq__</a>(self, other):</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordflow">if</span> isinstance(other, OrderedDict):</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <span class="keywordflow">return</span> len(self) == len(other) <span class="keywordflow">and</span> \</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                   all(p == q <span class="keywordflow">for</span> p, q <span class="keywordflow">in</span> zip(self.<a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a0104fd559ae60468afd35fa6888d794d">items</a>(), other.items()))</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">return</span> dict.__eq__(self, other)</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad13db1040abf129742791ff11d4b8db8">  103</a></span>&#160;    <span class="keyword">def </span><a class="code" href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad13db1040abf129742791ff11d4b8db8">__ne__</a>(self, other):</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <span class="keywordflow">return</span> <span class="keywordflow">not</span> self == other</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_ab45199265cf240b22cd468c146eef72c"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab45199265cf240b22cd468c146eef72c">aestate.ajson.sim.ordered_dict.OrderedDict.__repr__</a></div><div class="ttdeci">def __repr__(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00082">ordered_dict.py:82</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a87b868c4131d5a8772e29ab8c80861d7"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a87b868c4131d5a8772e29ab8c80861d7">aestate.ajson.sim.ordered_dict.OrderedDict.__map</a></div><div class="ttdeci">__map</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00023">ordered_dict.py:23</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a886407e586e8bc5211f404f9bf5b6c7a"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a886407e586e8bc5211f404f9bf5b6c7a">aestate.ajson.sim.ordered_dict.OrderedDict.__setitem__</a></div><div class="ttdeci">def __setitem__(self, key, value)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00026">ordered_dict.py:26</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a64ee52322f8491b85a246e9126d1602a"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a64ee52322f8491b85a246e9126d1602a">aestate.ajson.sim.ordered_dict.OrderedDict.fromkeys</a></div><div class="ttdeci">def fromkeys(cls, iterable, value=None)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00091">ordered_dict.py:91</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html">aestate.ajson.sim.ordered_dict.OrderedDict</a></div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00009">ordered_dict.py:9</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_ab12cc98312bb7ee8c0c8904025b09a74"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ab12cc98312bb7ee8c0c8904025b09a74">aestate.ajson.sim.ordered_dict.OrderedDict.update</a></div><div class="ttdeci">update</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00074">ordered_dict.py:74</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a7a6061e69b6a9d694885023ec96d0d5e"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a7a6061e69b6a9d694885023ec96d0d5e">aestate.ajson.sim.ordered_dict.OrderedDict.popitem</a></div><div class="ttdeci">def popitem(self, last=True)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00053">ordered_dict.py:53</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a1a372b463cce0adbbb4de3a9adb44431"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a1a372b463cce0adbbb4de3a9adb44431">aestate.ajson.sim.ordered_dict.OrderedDict.pop</a></div><div class="ttdeci">pop</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00075">ordered_dict.py:75</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a252b456fe5493c5a989fc1eeb5a46deb"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a252b456fe5493c5a989fc1eeb5a46deb">aestate.ajson.sim.ordered_dict.OrderedDict.__end</a></div><div class="ttdeci">__end</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00021">ordered_dict.py:21</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a72bd5f0d8a33e02d73c5721ca80b65b2"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a72bd5f0d8a33e02d73c5721ca80b65b2">aestate.ajson.sim.ordered_dict.OrderedDict.__reversed__</a></div><div class="ttdeci">def __reversed__(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00046">ordered_dict.py:46</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a872f6f68f9c794113e01ab744dfe93b5"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a872f6f68f9c794113e01ab744dfe93b5">aestate.ajson.sim.ordered_dict.OrderedDict.__init__</a></div><div class="ttdeci">def __init__(self, *args, **kwds)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00011">ordered_dict.py:11</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_adaff0e9dcd2e9a626a85e96a9a6a81cc"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#adaff0e9dcd2e9a626a85e96a9a6a81cc">aestate.ajson.sim.ordered_dict.OrderedDict.clear</a></div><div class="ttdeci">def clear(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00020">ordered_dict.py:20</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a2a1ed4882963fb4dbe628fdacddd743e"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a2a1ed4882963fb4dbe628fdacddd743e">aestate.ajson.sim.ordered_dict.OrderedDict.__iter__</a></div><div class="ttdeci">def __iter__(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00039">ordered_dict.py:39</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_ad13db1040abf129742791ff11d4b8db8"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad13db1040abf129742791ff11d4b8db8">aestate.ajson.sim.ordered_dict.OrderedDict.__ne__</a></div><div class="ttdeci">def __ne__(self, other)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00103">ordered_dict.py:103</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a6e63ad8f079d665ee964251cb1a707bb"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a6e63ad8f079d665ee964251cb1a707bb">aestate.ajson.sim.ordered_dict.OrderedDict.__reduce__</a></div><div class="ttdeci">def __reduce__(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00060">ordered_dict.py:60</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a9e36e8d777563dd970a13c9ed87007f9"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a9e36e8d777563dd970a13c9ed87007f9">aestate.ajson.sim.ordered_dict.OrderedDict.keys</a></div><div class="ttdeci">def keys(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00070">ordered_dict.py:70</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_ad00b2dec6985a3f2f787ad098a4093e3"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#ad00b2dec6985a3f2f787ad098a4093e3">aestate.ajson.sim.ordered_dict.OrderedDict.__delitem__</a></div><div class="ttdeci">def __delitem__(self, key)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00033">ordered_dict.py:33</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a3c5c7042b2a49ca19c35c047e14f3d68"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a3c5c7042b2a49ca19c35c047e14f3d68">aestate.ajson.sim.ordered_dict.OrderedDict.copy</a></div><div class="ttdeci">def copy(self)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00087">ordered_dict.py:87</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_afa3ad4f9fc3f574dbeb5e18b3db56622"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#afa3ad4f9fc3f574dbeb5e18b3db56622">aestate.ajson.sim.ordered_dict.OrderedDict.__eq__</a></div><div class="ttdeci">def __eq__(self, other)</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00097">ordered_dict.py:97</a></div></div>
<div class="ttc" id="aclassaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict_html_a0104fd559ae60468afd35fa6888d794d"><div class="ttname"><a href="classaestate_1_1ajson_1_1sim_1_1ordered__dict_1_1_ordered_dict.html#a0104fd559ae60468afd35fa6888d794d">aestate.ajson.sim.ordered_dict.OrderedDict.items</a></div><div class="ttdeci">items</div><div class="ttdef"><b>Definition:</b> <a href="ordered__dict_8py_source.html#l00077">ordered_dict.py:77</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
